package com.jinghao.ctws.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jinghao.core.common.controller.JingHaoBaseController;
import com.jinghao.ctws.entity.CwvCamera;
import com.jinghao.ctws.entity.CwvDataTotal;
import com.jinghao.ctws.service.ICwvDataTotalService;

@Controller
@Scope("prototype")
@RequestMapping(value = "/app/ctws/CwvDataTotal")
public class CwvDataTotalController extends JingHaoBaseController<CwvDataTotal> {
	//==================定制内容开始======================
//在这里修改代码
	/**
	 * 查询所有托盘数据对比数据
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/listCwvDataTotalTj",method = RequestMethod.GET) 
	public Map<String, Object> listCwvDataTotalTj(@ModelAttribute("model") CwvDataTotal model){
		this.getCwvDataTotalService().listCwvDataTotalTj(model);
        return model.getListJson();   
	} 
	
	/**
	 * 查询所有托盘数据汇总数据
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/listCwvDataTotalHuiZong",method = RequestMethod.GET) 
	public Map<String, Object> listCwvDataTotalHuiZong(@ModelAttribute("model") CwvDataTotal model){
		this.getCwvDataTotalService().listCwvDataTotalHuiZong(model);
        return model.getSingleJson();   
	} 
	//==================定制内容结束======================

	@Autowired
	public void setCwvDataTotalService(ICwvDataTotalService cwvDataTotalService) {
		super.setIJingHaoBaseService(cwvDataTotalService);
	}

	public ICwvDataTotalService getCwvDataTotalService() {
		return (ICwvDataTotalService) super.getIJingHaoBaseService();
	}
}
